package org.jeecg.modules.project.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;

import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import javax.validation.constraints.*;

/**
 * <p>
 * 
 * </p>
 *
 * @author liujiamiao
 * @since 2020-11-04
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="Project对象", description="")
@TableName(value = "sci_project")
public class Project implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @NotBlank
    @ApiModelProperty(value = "项目名称")
    private String projectName;

    @NotNull
    @ApiModelProperty(value = "项目人数")
    private Integer projectNum;

    @NotBlank
    @Size(min = 1,max = 200)
    @ApiModelProperty(value = "项目描述")
    private String projectDescribe;

    @NotBlank
    @Size(min = 1,max = 200)
    @ApiModelProperty(value = "项目职责")
    private String projectResponsibility;

    @ApiModelProperty(value = "项目备注")
    private String remarks;

    @ApiModelProperty(value = "基本信息Id")
    private int basicId;
}
